package common.consts;

/**
 * Created by Administrator on 2015/7/3.
 */
public enum Ratings {
    FLOWER, EGG;

    public static boolean isValid(String rate) {
        if (rate == null) {
            return false;
        }

        //values()
        for (Ratings ratings : values()) {
            if (ratings.name().equalsIgnoreCase(rate)) {
                return true;
            }
        }
        return false;
    }
}
